package com.ocom.ugcapi.client;

import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.resp.RespMachMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 更好适应仅消费  改为从消费操作获取 payhandle
 */

@FeignClient(value = "payhandle")
public interface SrvpaccessClientService {

    // 获取解码密钥（getDecodeKey）
    @GetMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getDecodeKey)
    public RespMachMessage getDecodeKey(@RequestParam("companyId")Long companyId,@RequestParam("machNo") String machNo, @RequestParam("deviceType") Integer deviceType);
}
